<div ng-controller="PickpointCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/pickpoint/list">{{'发货点'|translate}}</a></li>
        <li>列表</li>
        <li>
            <a href="#/pickpoint/add" class="sui-btn btn-primary">{{'+增加发货点'|translate}}</a>
            <!-- <update-pick-point pickpoint-id="0" callback="getpickpointList()" btn-name=" + 增加发货点"></update-pick-point> -->
        </li>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'发货点名称'|translate}}</th>
                <th>{{'address'|translate}}</th>
                <th>{{'mobile'|translate}}</th>
                <th>{{'country'|translate}}</th>
                <th>{{'发货人姓名'|translate}}</th>
                <th>{{'创建时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in pickpoint_list">
                <td>{{list.pickpoint_id}}</td>
                <td>{{list.name}}</td>
                <td>{{list.province}} {{list.city}} {{list.district}} {{list.address}}</td>
                <td>
                    {{list.phone}}
                </td>
                <td>
                    <pickpoint-country ng-model="list.country" stype="1"></pickpoint-country>
                </td>
                <td>{{list.delivery_name}}</td>
                <td>
                    {{list.created_time}}
                </td>
                <td>
                    <!-- <update-pick-point pickpoint-id="{{list.pickpoint_id}}" callback="getpickpointList()" btn-name="编辑">
                    </update-pick-point> -->
                    <a href="#/pickpoint/add?pickpoint_id={{list.pickpoint_id}}" class="sui-btn btn-primary">{{'编辑'|translate}}</a>
                    <button class="sui-btn btn-danger" ng-click="deletePick(list.pickpoint_id)">{{'delete'|translate}}</button>
                    <button ng-show="list.status==0" type="button" class="sui-btn btn-warning" ng-click="statusUpdate(1,list,$event)">{{'激活'|translate}}</button>
                    <button ng-show="list.status==1" type="button" class="sui-btn btn-danger" ng-click="statusUpdate(0,list,$event)">{{'禁用'|translate}}</button>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="pick_total" get-data="getpickpointList(pageNo)"></pager>
</div>